<!DOCTYPE html>
<div id="container" style="width: 300px; height: 300px; overflow: scroll; outline: 10px solid yellow">
  <div style="width: 3000px; height: 3000px"></div>
</div>
<script>
container.scrollTop = 400;
</script>
